package com.lemon.smartsafetynew.entity.common;

/**
 * Created by Andrew on 2017/11/15.
 */

public class CommonBo {

    public enum Status {

        status_false("0", "false"),
        status_true("1", "true");

        private String value;
        private String desc;

        Status(String value, String desc) {
            this.value = value;
            this.desc = desc;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

    }

    public enum Account {

        LOGIN_ERROR_MOREUSER(2, "多用户需要选择"),
        LOGIN_ERROR_FIRSTLOGIN(-2, "首次登陆");

        private int value;
        private String desc;

        Account(int value, String desc) {
            this.value = value;
            this.desc = desc;
        }

        public int getValue() {
            return value;
        }

        public void setValue(int value) {
            this.value = value;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

    }

    public enum Project {

        CHANGSHU("cs", "常熟智慧安全平台"),
        XUZHOU("xz", "徐州贾汪区江庄镇智慧安全平台"),
        JIANGXIJIEDAO("jxjd", "江溪街道智慧安全平台"),
        CAMPUS("campus", "校园智慧安全云");

        private String value;
        private String desc;

        Project(String value, String desc) {
            this.value = value;
            this.desc = desc;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

    }

    public enum BusinessType {

        HIDDEN_JUMP_SEARCH("HIDDEN_JUMP_SEARCH", "隐患跳转网格和企业搜索");

        private String value;
        private String desc;

        BusinessType(String value, String desc) {
            this.value = value;
            this.desc = desc;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

    }

    public enum SensorDataStatus {

        data_error("0", "无数据"),
        data_normal("1", "有数据");

        private String value;
        private String desc;

        SensorDataStatus(String value, String desc) {
            this.value = value;
            this.desc = desc;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

    }

}
